import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'
import permission from './modules/permission'
import getters from './getters'

Vue.use(Vuex) //Vue.use() 来安装 Vuex

const store = new Vuex.Store({
    state:{
        sidebar:false
    },
    modules:{
        user,
        permission
    },
    getters
})
export default store
